package com.yuke.cloud.service.cmc.service;

import com.yuke.cloud.service.api.cmc.dto.CmsSecKillAndSkuDto;
import com.yuke.cloud.service.api.cmc.dto.CmsSecKillSkuDto;
import com.yuke.cloud.service.cmc.entity.CmsSecKill;
import com.yuke.cloud.common.core.support.IService;

import java.util.List;


/**
 * Created by wg on 2019/05/28.
 */
public interface CmsSecKillService extends IService<CmsSecKill> {

    Boolean isSecKillOn(Long secKillId);

    List<CmsSecKillAndSkuDto> getNextSecKillAndSpecs();

    List<CmsSecKillAndSkuDto> getSecKillAndSpecs();

    List<CmsSecKillAndSkuDto> getNowSecKillAndSpecs(Integer count);

    List<CmsSecKillAndSkuDto> getLastSecKillAndSpecs(Integer count);

    List<CmsSecKillAndSkuDto> getNextSecKillAndSpecsExt(Integer count);

    List<CmsSecKillSkuDto> getSecKillSkus(Long secKillId,Long shopId);
}
